<div class="pagination">
  <p>
    <% if @pages.current.previous %>
      <%= link_to _("&#171; Previous"), { :page => @pages.current.previous }, :class => 'current' %>
    <% else %>
      <span><%= _("&#171; Previous") %></span>
    <% end %>
    <%= paginate_number @pages.last, @pages.current.number, @order %>
    <% if @pages.current.next %>
      <%= link_to _("Next &#187;"), { :page => @pages.current.next }, :class => 'current' %>
    <% else %>
      <span><%= _("Next &#187;") %></span>
    <% end %>
    <%=h n_('Total %{count} item', 'Total %{count} items', @pages.item_count) % {:count => @pages.item_count} %>
    <%=h _('( %{first} - %{last} )') % {:first => @pages.current.first_item, :last => @pages.current.last_item} %>
  </p>
</div>
